﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucLogin.ascx.cs" Inherits="Photo.Module.ucLogin" %>
<style type="text/css">
    .Total_Noti
    {
        color: Red;
        font-size: 11px;
        font-weight: bold;
    }
</style>
<div id="login_form" runat="server">
    <ul class="login">
        <li><a href="#" class="login_btn" title="Đăng nhập">Đăng Nhập</a></li>
    </ul>
    <div id="login_box" style="display: none;">
        <%-------    Login Box ---------%>
        <table id="loginform" runat="server">
            <tr>
                <td>
                    <asp:TextBox ID="txtUsername" runat="server" placeholder="Tên đăng nhập" ReadOnly="false"
                        Width="160px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="txtUsername"
                        ValidationGroup="valiLogin" ErrorMessage="***"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="txtPassword" runat="server" placeholder="Mật khẩu" ReadOnly="false"
                        Font-Size="12px" Width="160px" TextMode="Password"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPassword"
                        ValidationGroup="valiLogin" ErrorMessage="***"></asp:RequiredFieldValidator>
                </td>
            </tr>
         </table>
          <div class="login-button">
                <asp:Button runat="server" ID="btnSignIn" Width="80px" Height="30px" Text="Đăng nhập"
                    ValidationGroup="valiLogin" Font-Size="12px" OnClick="btnSignIn_OnClick" CssClass="btnSignIn" />
            </div>
    </div>
</div>
<%------------End-------------%>
<%-------------Logged Box------------%>
<div id="logged_form" runat="server" visible="false">
    <div id="logged_box" runat="server">
        <table width="190px" style="">
            <tr>
                <td colspan="2" style="height: 20px; line-height: 20px; width: 55%; color:white;">
                    Xin Chào :<span style="font-weight: bold; color: Red;">
                        <asp:Label ID="lblUsername" runat="server" Text="" ForeColor="Red" Font-Bold="true"></asp:Label>
                        <asp:LinkButton ID="lblLogOut" ToolTip="Log out" runat="server" Text="(Logout)" CausesValidation="false"
                            OnClick="LogOut_Click" Font-Overline="false" Font-Bold="false" ForeColor="#6f5c5e">
                            </asp:LinkButton><a href='/ListAlbum.aspx' style="float:right; color:#890000; font-family:Tahoma;font-size:13px;"> Upload </a>
                    </span>
                </td>
                
            </tr>
        </table>
    </div>
</div>
<%------------ End---------------%>
